Release 10.1A: OpenEdge Development:
Progress 4GL Reference


OR operator

Returns a TRUE value if either of two logical expressions is TRUE.

Syntax

expression OR expression 

expression

A logical expression (a constant, field name, variable name or expression whose value is logical, that is, TRUE/FALSE, YES/NO).

Example

This procedure lists customers who have no postal code (postal-code = "") or that have no telephone number (phone = ""). It also displays how many customers are in the list.

r-or.p
FOR EACH customer WHERE postal-code = "" OR phone = "":
    DISPLAY cust-num name (COUNT) city state postal-code phone.
END. 

See also

AND operator, NOT operator


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095